package com.wjc.server.dto;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;

public class RoleUserDto {

    /**
     * id
     */
        private Long id;
    /**
     * 角色id
     */
        
        @NotBlank(message = "角色id不能为空")
        
        private Long roleId;
    /**
     * 用户id
     */
        
        @NotBlank(message = "用户id不能为空")
        
        private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", roleId=").append(roleId);
        sb.append(", userId=").append(userId);
        sb.append("]");
        return sb.toString();
    }

}